#include<stdio.h>
int main()
{
	int n = 1, sum = 0;
	while (n)
	{
		sum = sum + n * n * n;
		if (sum > 1000)
		{
			break;
		}
		n++;
	}
	printf("n=%d\n", n - 1);
	return 0;
}